const mysql = require("mysql");

// 连接数据库
function createConnection() {
    let connection = mysql.createConnection({
        host: "127.0.0.1",
        port: "3306",
        user: "root",
        password: "123123",
        database: "studentsystem"
    });
    return connection;
}

module.exports.createConnection = createConnection;